package com.lu.pojo.oop.extend;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Kids  extends ManKind{
    private int yearsOld;

    public Kids(int yearsOld) {
        this.yearsOld = yearsOld;
    }

    public Kids() {
    }


    public int getYearsOld() {
        return yearsOld;
    }

    public void setYearsOld(int yearsOld) {
        this.yearsOld = yearsOld;
    }

    public void printAge(){
        System.out.println(this.yearsOld);
    }


    public static void main(String[] args) {
        Kids somKids = new Kids();
        somKids.setSalary(10);
        int salary = somKids.getSalary();
        System.out.println(salary);


    }
}
